/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package modele;

import java.util.Collection;
import java.util.TreeSet;

/**
 *
 * @author sio
 */
public class Dep implements Comparable <Dep>{
    private String num;
    private Collection<Med> lesMeds=new TreeSet<Med>();
    
    public Dep(String n){
        this.num=n;
        
    }
    
    public String getNum() {
        return this.num;
    }
    
    public Collection<Med> getLesmeds(){
        return this.lesMeds;
    }
    
    public void addDep(Med unMed){
        lesMeds.add(unMed);
    }



    @Override
    public int compareTo(Dep o) {
        return num.compareTo(o.num);
    }
    
}
